package cn.edu.fzu.homemaking.company.mapper;

import cn.edu.fzu.homemaking.company.domain.entity.CompanyServer;
import cn.edu.fzu.homemaking.company.domain.entity.OrderCompanyUser;
import cn.edu.fzu.homemaking.company.domain.enums.ServerPriceModeEnum;
import cn.edu.fzu.homemaking.company.domain.enums.ServerStatusEnum;
import cn.edu.fzu.homemaking.company.domain.enums.UserOrderStatusEnum;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wanjie
 * @version 1.0
 */
public interface OrdersCompanyUserMapper {

    //添加家政人员订单表
    int insertOrderCompanyUser(@Param("orderCompanyUser") OrderCompanyUser orderCompanyUser);


    //查询家政人员订单表
    List<OrderCompanyUser> list(@Param("orderId") String orderId, @Param("companyUserId") Long companyUserId,
                                @Param("status") UserOrderStatusEnum status);


    //修改家政人员订单表状态
    int updateOrderCompanyUser(@Param("orderId") String orderId, @Param("status") UserOrderStatusEnum status,
                               @Param("companyUserId") Long companyUserId);


    List<String> listNotDoneOrderId(@Param("companyUserId") Long companyUserId);
}
